﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PRO.ORM;
using System.Data;

namespace PRO.Entity
{
    [Entity(TableName = "Pro_Order_Items")]
    public class OrderItemInfo : BaseEntity
    {
        private int _ID;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4, PrimaryKey = true)]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _OID;
        /// <summary>
        /// 订单id
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4)]
        public int OID
        {
            get { return _OID; }
            set { _OID = value; }
        }

        private string _ProductTitle;
        /// <summary>
        /// 产品标题
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 100)]
        public string ProductTitle
        {
            get { return _ProductTitle; }
            set { _ProductTitle = value; }
        }

        private decimal _Price;
        /// <summary>
        /// 产品价格
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Decimal, Len = 18)]
        public decimal Price
        {
            get { return _Price; }
            set { _Price = value; }
        }

        private int _Counts;
        /// <summary>
        /// 购买数量
        /// </summary>
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4)]
        public int Counts
        {
            get { return _Counts; }
            set { _Counts = value; }
        }

    }
}
